package com.zilue.payment.gateway.reurndata.enums;

public enum BusinessStatusEnum {
    Success("BUSINESS_SUCCESS", "成功"),
    Failed("BUSINESS_FAILED", "失败"),
    OrderCreateSuccess("1000", "创建订单成功"),
    OrderCreateFailed("1001", "创建订单失败"),
    OrderPaySuccess("1002", "支付成功"),
    OrderPayFailed("1003", "支付失败"),
    OrderQuerySuccess("1004", "查询成功"),
    OrderQueryFailed("1005", "查询失败"),
    RefundOrderSuccess("1006", "退费成功"),
    RefundOrderFailed("1007", "退费失败"),
    ParameterIllegal("1009", "业务参数不合法"),
    CardIllegal("1011", "诊疗卡无效"),
    AppidIllegal("1013", "APPID不合法"),
    OrderNumberIllegal("1015", "请更换订单编号"),
    OrderNumberCancled("1017", "请更换订单编号，当前订单号已经有一笔取消的订单"),
    OrderNumberClosed("1019", "请更换订单编号，当前订单号已经有一笔关闭的订单"),
    OrderNumberSucceed("1021", "请更换订单编号，当前订单号已经有一笔成功的订单"),
    OrderNumberWaitForPay("1023", "请更换订单编号，当前订单号已经有一笔待支付的订单"),
    OrderNumberHasRefund("1024", "请更换订单编号，当前订单号已经有一笔退费完成的订单"),
    OrderNotExist("1025", "支付订单不存在"),
    PayAuthCodeIllegal("1027", "支付授权码错误"),
    OrderCancled("1029", "交易已经取消"),
    OrderSucceed("1030", "交易已经完成"),
    OrderClosed("1031", "交易已经关闭"),
    BusinessIllegal("1033", "业务场景非法"),
    BusinessNotSupport("1033", "业务场景不支持"),
    RefundFeeChanged("1035", "退费订单发生改变"),
    RefundFeeIllegal("1037", "退费金额超出可退金额"),
    OrderRefunded("1039", "退费已经关闭，全部费用已经退还完毕。"),
    OrderNotPay("1041", "交易尚未支付"),
    OrderStatusIllegal("1043", "交易状态异常"),
    OrderOutRefundNoIllegal("1045", "请更换退款批次号，当前批次号已有退费记录。"),
    OrderFeeIllegal("1047", "金额不合法"),
    OrderPayOrderNoIllegal("1051", "特殊必须(二选一) 商户订单号/支付系统单号"),
    OrderRefundOrderNoIllegal("1053", "特殊必须(三选一) 商户订单号/支付系统单号/第三方订单号"),
    OrderCancleSuccess("1056", "撤单成功！"),
    OrderCancleFailed("1057", "撤单失败！"),
    OrderCancleFailedOrderRefund("1059", "撤单失败！订单已经有退费记录"),

    Busyness("BUSINESS_BUSYNESS", "业务系统繁忙");
    private String sub_code;
    private String sub_msg;

    BusinessStatusEnum(String sub_code, String sub_msg) {
        this.sub_code = sub_code;
        this.sub_msg = sub_msg;
    }

    public String getSub_code() {
        return sub_code;
    }

    public void setSub_code(String sub_code) {
        this.sub_code = sub_code;
    }

    public String getSub_msg() {
        return sub_msg;
    }

    public void setSub_msg(String sub_msg) {
        this.sub_msg = sub_msg;
    }
}